import request from '@/utils/request'

export function post(url,data) {
  return request({
    url: url,
    // url: '/vue-admin-template/user/login',
    method: 'post',
    data
  })
}


export function get(url) {
  return request({
    url: url,
    // url: '/vue-admin-template/user/login',
    method: 'get',
  })
}


export function getP(url,data) {
  return request({
    url: url,
    // url: '/vue-admin-template/user/login',
    method: 'get',
    params: data
  })
}